Skip to content

Conversation

@kevinmichaelchen
Copy link
Owner

@kevinmichaelchen kevinmichaelchen commented Apr 29, 2025

https://napi.rs/docs/introduction/getting-started

  • it's a best practice with NAPI to not put all your binaries (.node files) in the same NPM package
  • instead, we publish a package per binary
  • for testing (locally and in CI), we copy the .node file into the same directory as src/index.cjs (the napi loader)
  • for external consumers, they'll need to npm install the appropriate npm package

@kevinmichaelchen kevinmichaelchen changed the title attempt 2 chore: Fix builds Apr 29, 2025
@kevinmichaelchen kevinmichaelchen merged commit 59344cb into main Apr 29, 2025
11 checks passed
@kevinmichaelchen kevinmichaelchen deleted the fix-cjs-invocation branch April 29, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants